package cn.hnc.checkapi.bean.node;

import javax.validation.constraints.NotNull;

public class receptionItemRequest {
   private @NotNull(
   message = "步骤ID不能为空"
) Long processId;
   private String mouldCode;

   public Long getProcessId() {
      return this.processId;
   }

   public String getMouldCode() {
      return this.mouldCode;
   }

   public void setProcessId(final Long processId) {
      this.processId = processId;
   }

   public void setMouldCode(final String mouldCode) {
      this.mouldCode = mouldCode;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof receptionItemRequest)) {
         return false;
      } else {
         receptionItemRequest other = (receptionItemRequest)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$processId = this.getProcessId();
            Object other$processId = other.getProcessId();
            if (this$processId == null) {
               if (other$processId != null) {
                  return false;
               }
            } else if (!this$processId.equals(other$processId)) {
               return false;
            }

            Object this$mouldCode = this.getMouldCode();
            Object other$mouldCode = other.getMouldCode();
            if (this$mouldCode == null) {
               if (other$mouldCode != null) {
                  return false;
               }
            } else if (!this$mouldCode.equals(other$mouldCode)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof receptionItemRequest;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $processId = this.getProcessId();
      result = result * 59 + ($processId == null ? 43 : $processId.hashCode());
      Object $mouldCode = this.getMouldCode();
      result = result * 59 + ($mouldCode == null ? 43 : $mouldCode.hashCode());
      return result;
   }

   public String toString() {
      return "receptionItemRequest(processId=" + this.getProcessId() + ", mouldCode=" + this.getMouldCode() + ")";
   }
}
